const router = require('koa-router')()
var mongoose = require('mongoose');
var act = require('../controller/common.js');
var Api = mongoose.model('Api');
router.prefix('/f');

//获取单个的项目信息
router.get('/:id', async (ctx, next) =>{
  let _id = ctx.params.id;
  let data = await act.getUserById(_id);  
  ctx.body = data;
})
module.exports = router